from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('https://www.baidu.com')

# driver.name
print(driver.name)

print(driver.current_url)

print(driver.page_source)

print(driver.current_window_handle)

driver.find_element(By.LINK_TEXT, '新闻').click()
print(driver.window_handles)

driver.quit()